<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <div id="app">
        <p>{{num1}}</p>
        <p>{{num2}}</p>
        <p>{{num1 > num2}}</p>
        <p>num1和num2中最大的是{{num1 > num2?num1:num2}}</p>
        <hr>
        <p>{{str.substring(4,str.length).split('').reverse().join('')}}</p>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                num1: 11,
                num2: 22,
                str: 'dengrunfa'
            }
        })
    </script>
</body>

</html>